package com.example.roomdemo;

import android.app.Application;

/**
 * @author: tuyrt7 on 2020/9/4.
 */
public class App extends Application {

    private static MyDatabase mMyDatabase;

    @Override
    public void onCreate() {
        super.onCreate();
        mMyDatabase = MyDatabase.get(this);
    }

    public static MyDatabase getMyDatabase() {
        return mMyDatabase;
    }
}
